package ma.mindware.mpm.util;

import javax.servlet.http.HttpSession;

import org.apache.struts2.ServletActionContext;

import com.opensymphony.xwork2.ActionSupport;

public class IndexController extends ActionSupport  {
	
	private HttpSession session =ServletActionContext.getRequest().getSession();
	
	public  String execute(){
		String role=(String)session.getAttribute("userRole");
		if(!role.equals("")){
			return role;
		}
		return ERROR;
	}
	
	
	

}
